package funnytrails;

import org.apache.wicket.markup.html.WebPage;
import org.wicketstuff.gmap.GMap;
import org.wicketstuff.gmap.api.GIcon;
import org.wicketstuff.gmap.api.GLatLng;
import org.wicketstuff.gmap.api.GMarker;
import org.wicketstuff.gmap.api.GMarkerOptions;
import org.wicketstuff.gmap.api.GOverlay;
import org.wicketstuff.gmap.api.GSize;

public class TrailsPage extends WebPage {
    public TrailsPage() {
    	final GMap map = new GMap("map");
//        map.setStreetViewControlEnabled(false);
//        map.setScaleControlEnabled(true);
//        map.setScrollWheelZoomEnabled(true);
//        GKmlOverlay kmlOverlay = new GKmlOverlay("http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml", false);
//        map.addOverlay(kmlOverlay);       

    	
    	map.setCenter(new GLatLng(52.37649, 4.888573));
        

        GIcon icon =
                new GIcon("pin.gif").setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));
        GIcon shadow =
                new GIcon("shadow.png").setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));
        GOverlay marker = new GMarker(new GMarkerOptions(map, new GLatLng(52.37649, 4.888573), "My Title", icon, shadow));

        map.addOverlay(marker);
        
        add(map);
    }
}